x86 numa: fix nodes' memory parsing when SRAT table includes future-hotplug memory...
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 12 Aug 2009 13:16:09 +0000 (14:16 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 12 Aug 2009 13:16:09 +0000 (14:16 +0100)
commit2606d3eec651a0e6d9b912df903f695db425e148
tree5a4b9d84e841a50a6bf748cad19026350201f66f
parent6ebb9d5ec8073d416a743739dc27108d2649830b
x86 numa: fix nodes' memory parsing when SRAT table includes future-hotplug memory range

A node's future-hotplug memory range starts from very high end
normally, e.g. 1TB, and is not continuous with its current existing
memory range. It should not be covered by the global variable 'nodes'
as it assumes the node's memory is continuous. Otherwise it can make
nodes' memory ranges become very big and overlapped, and
populate_memnodemap() fails.

We can ignore future-hotplug memory range for now. Physical memory
hotplug support in future will handle it.

Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com>
xen/arch/x86/srat.c